package com.qf.sl.youshare.utils;

import com.qf.sl.youshare.model.User;
import com.qf.sl.youshare.model.UserLogin;

/**
 * Created by IDEA
 * User : SL
 * on  2015/2/19.
 * 21:35
 */
public class UserCurrent {

    private User user;

    public UserLogin userLogin;

    private static UserCurrent ourInstance = new UserCurrent();

    public static UserCurrent getInstance() {
        return ourInstance;
    }

    private UserCurrent() {
    }

    public void setUser(User user) {
        this.user = user;
    }

    public User getUser() {
        return user;
    }

    public UserLogin getUserLogin() {

        if (userLogin != null) {
            return userLogin;
        }else {
            return null;
        }

    }

    public void setUserLogin(UserLogin userLogin) {
        this.userLogin = userLogin;
    }
}
